<template>
  <div v-html="html"></div>
</template>
<script>
export default {
  data() {
    return {
      da: null,
      html: null,
      css:null 
    };
  },
  mounted() {},
  created() {
    this.da = this.$route.query.id;
    console.log(this.da);
    this.getData();
  },
  methods: {
    getData() {
      axios
        .get("https://apis.netstart.cn/zhihudaily/story/" + this.da)
        .then((res) => {
          this.html = res.data.story.body;
          this.css = res.data.story.css[0]
          console.log(res.data.story);
        //   console.log(this.css[0]);
        });
    //    axios
    //   .get(this.css)
    //   .then((res) => {
    //    console.log(res);
    //   });
    },
  },
};
</script>
